

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class Queries {
	static Connection c = ConnectionFactory.getConnection();
	static boolean b;
	static ResultSet rs;

	public static boolean update(String query) {
		try {
			Statement s = c.createStatement();
			b = s.execute(query);
		} catch (SQLException e) {

			e.printStackTrace();
		}
		return b;
	}

	public static ResultSet select(String query) {
		try {
			Statement s = c.createStatement();
			rs = s.executeQuery(query);
		} catch (SQLException e) {

			e.printStackTrace();
		}
		return rs;
	}

}
